package com.luban.objectfactorydemo;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.ObjectFactory;
import org.springframework.stereotype.Component;

/**
 * @Author: lijunwei
 * @Time: 2021/5/10 21:21
 */
@Component
public class MyObjectFactory implements ObjectFactory<Son> {

	@Override
	public Son getObject() throws BeansException {
		return new Son();
	}
}
